package com.wei.shopping.service.impl;

import com.wei.shopping.dao.AdminMapper;
import com.wei.shopping.pojo.Login;
import com.wei.shopping.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional
public class AdminServiceImpl implements AdminService {
    @Resource
    private AdminMapper adminMapper;
    /**
     * 管理员登陆
     * @param username
     * @param password
     * @return
     */
    public Login login(String username, String password){
        return adminMapper.login(username,password);
    }
}
